﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GeracaoEtiquetas.aspx.cs" Inherits="SeCompUFSCarWeb.Administration.GeracaoEtiquetas" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Geração de Etiquetas - V SeComp</title>
    <style>
        @font-face {
            font-family: MyriadPro;
            src: url('../fonts/MyriadPro-Regular.otf');
        }

        .IDLabel {
            font-size: 20px;
            font-weight:bold;
        }

        .PACOTELabel {
            font-size: 20px;
            font-weight:bold;
            margin-left: 225px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:SqlDataSource ID="MySQLDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultConnection %>" ProviderName="<%$ ConnectionStrings:DefaultConnection.ProviderName %>" SelectCommand="SELECT * FROM CREDENCIAL;"></asp:SqlDataSource>


            <asp:DataList ID="etiquetas" runat="server" CellPadding="0" DataKeyField="ID" DataSourceID="MySQLDataSource" RepeatColumns="2" RepeatDirection="Horizontal" ShowFooter="False" ShowHeader="False" OnItemDataBound="etiquetas_ItemDataBound" Font-Bold="False" Font-Italic="False" Font-Names="Myriad Pro" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="Black" HorizontalAlign="Center" VerticalAlign="Middle" Width="400px" Height="254px" />
                <ItemTemplate>
                    <asp:Label ID="NOMELabel" runat="server" Font-Size="30px" Text='<%# Eval("NOME") %>' />
                    <br />
                    <asp:Image ID="IDImage" runat="server" ImageUrl='<%# "http://chart.apis.google.com/chart?cht=qr&chs=120x120&chl=" + Eval("ID") + "&chld=H|0"%>' />
                    <br />
                    <asp:Label ID="IDLabel" runat="server" CssClass="IDLabel" Text='<%# Eval("ID")  %>' />
                    <asp:Label ID="PACOTELabel" runat="server" CssClass="PACOTELabel" Text='<%# Eval("PACOTE") %>' />
                    <br />
                    <br />
                </ItemTemplate>
                <SeparatorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
            </asp:DataList>

        </div>
    </form>
</body>
</html>
